package com.yi.mall.common.model.DTO;

import com.yi.mall.common.utils.EncryptUtils;
import com.yi.mall.common.model.UserReceiveAddress;
import lombok.Data;

@Data
public class UserReceiveAddressDTO extends UserReceiveAddress {
    private String receiveAddress;

    public String getReceiveAddress() {
        return super.getProvince() + super.getCity() + super.getRegion() + super.getDetailAddress();
    }

    public String getPhoneNumber(){
        return EncryptUtils.hidePhone(super.getPhoneNumber());
    }
}
